<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'emp_add.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" type="text/css" href="css/emp_add.css">
<link href="css/sunny/jquery-ui-1.10.2.custom.css" rel="stylesheet">
<script src="js/jquery/jquery-1.9.1.js"></script>
<script src="js/jquery/jquery-ui-i18n.js"></script>
<script src="js/jquery/jquery-ui-1.10.2.custom.js"></script>
<script language="JavaScript" type="text/javascript" src="js/emp_add.js"></script>
<script>
	$(function() {
		$("#datepicker").datepicker({
			changeYear : true,
			dateFormat : 'yy-mm'
		});

	});
</script>
<style type="text/css">
table.gridtable {
	font-family: verdana, arial, sans-serif;
	font-size: 11px;
	color: #333333;
	border-width: 1px;
	border-color: #666666;
	border-collapse: collapse;
}

table.gridtable th {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #666666;
	background-color: #dedede;
}

table.gridtable td {
	border-width: 1px;
	padding: 8px;
	border-style: solid;
	border-color: #666666;
	background-color: #ffffff;
}
</style>
</head>
<body>
	<h3>工资信息添加</h3>
	<div id="container">
		<form id="fm-form" method="post" action="wageAction!addWage.action">
			<fieldset>
				<legend>个人信息</legend>
				<div class="fm-req">
					<label for="fm-firstname">员工号</label> <s:property value='employee.emp_id'/>
				</div>
				<div class="fm-req">
					<label for="fm-firstname">员工姓名</label> <s:property value='employee.emp_name'/>
				</div>
				<div class="fm-req">
					<label for="fm-firstname">基本工资</label> <input name="wage.wage_base"
						id="fm-firstname" type="text">
						<input type="hidden"  name="wage.wage_emp_id" value="<s:property value='employee.emp_id'/>"  type="text"/>
						<input  type="hidden" name="wage.wage_emp_name" value="<s:property value='employee.emp_name'/>"  type="text"/>
						<input  type="hidden" name="wage.wage_dept_id" value="<s:property value='employee.emp_dept_id'/>"  type="text"/>
				</div>
				<div class="fm-req">
					<label for="fm-firstname">月份</label> <input name="wage.wage_month"
						id="datepicker" type="text">
				</div>
			</fieldset>
			<fieldset>
				<legend>考勤信息</legend>
				<div class="fm-req">
					<label for="fm-firstname">应工作天数</label> <input
						name="wage.wage_should_days" id="fm-firstname" type="text">
				</div>
				<div class="fm-req">
					<label for="fm-firstname">实际工作天数</label> <input
						name="wage.wage_work_days" id="fm-firstname" type="text">
				</div>
			</fieldset>
			<fieldset>
				<legend>津贴</legend>
				<table class="gridtable">

					<tr>
						<th></th>
						<th>是否适用</th>
						<th>津贴内容</th>
						<th>津贴数量</th>

					</tr>
					<s:iterator value="subsidyList" var="subsidy" status="stat">
						<tr>
							<td><s:property value="#stat.count" /></td>
							<td><input type="checkbox"
								name="wage.effect_subsidys[<s:property value='#stat.count-1' />]"
								value='<s:property value="#subsidy.subsidy_id" />'></input></td>
							<td><s:property value="#subsidy.subsidy_content" />
							</td>
							<td><s:property value="#subsidy.subsidy_amount" />
							</td>
						</tr>
					</s:iterator>
				</table>
			</fieldset>

			<div id="fm-submit" class="fm-req">
				<input name="Submit" value="&#25552; &#20132;" type="submit">
			</div>
			<br>
		</form>
	</div>
</body>
</html>
